package com.situ.boot.entity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "monduihuan", schema = "brcc", catalog = "")
public class MonduihuanEntity {
    private int id;
    private Integer uid;
    private String phone;
    private Double money;
    private String types;
    private Timestamp crtime;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "uid")
    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    @Basic
    @Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Basic
    @Column(name = "money")
    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    @Basic
    @Column(name = "types")
    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    @Basic
    @Column(name = "crtime")
    public Timestamp getCrtime() {
        return crtime;
    }

    public void setCrtime(Timestamp crtime) {
        this.crtime = crtime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MonduihuanEntity that = (MonduihuanEntity) o;
        return id == that.id &&
                Objects.equals(uid, that.uid) &&
                Objects.equals(phone, that.phone) &&
                Objects.equals(money, that.money) &&
                Objects.equals(types, that.types) &&
                Objects.equals(crtime, that.crtime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, uid, phone, money, types, crtime);
    }
}
